package com.example.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.model.BusinessType;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface BusinessTypeMapper extends BaseMapper<BusinessType> {
    @Select("SELECT * FROM business_type WHERE id = #{id}")
    BusinessType selectById(int id);

    @Select("SELECT * FROM business_type")
    List<BusinessType> selectList();
}
